// const $service = require('../../service/index.js');

Page({
    data: {
        indicatorDots: false,
        autoplay: false,
        interval: 5000,
        duration: 1000,
        current: null,
        weatherList: [
            {
                weather: 'sunny',
                word: '风和日丽',
                article: '虽未知远方，仍驭风翱翔'
            },
            {
                weather: 'cloudy',
                word: '如晴天似雨天',
                article: '主人~天青色等烟雨，而我在等你'
            },
            {
                weather: 'stormy',
                word: '电闪雷鸣',
                article: '主人~天青色等烟雨，而我在等你'
            },
            {
                weather: 'rainy',
                word: '风雨交加',
                article: '和雨天相配的，不仅有雨伞，还有你'
            },
            {
                weather: 'snowy',
                word: '千里冰封，万里雪飘',
                article: '风坲草海连天碧，月照花林映雪白'
            },
            {
                weather: 'rainbow',
                word: '雨过天晴',
                article: '雨过天青云归处，风清时晓见月白'
            },
            {
                weather: 'starry',
                word: '繁星点点',
                article : '清风不住月白夜，森森流萤映涓埃'
            }
        ]
    },
    onLoad: function (options) {
        // console.log($service)
        // $api.getBubble()
        //     .then(res => {
        //         //请求成功
        //         console.log(res)
        //     })
        //     .catch(err => {
        //         //请求失败
        //     })
    }
})